import React from 'react'
import { useStore } from '../store/index.js'; 
import { observer } from 'mobx-react-lite';

function Bar() {
  const {taskStore} = useStore()
  return (
    <div>
      <ul>
        {
          taskStore.list.map((item, index) => {
            return <li key={item}>{index}</li>
          })
        }
      </ul>
    </div>
  )

}
export default observer(Bar)
